﻿using MongoDB.Attributes;
using System;

namespace Resn.WhuPub.DML
{
        /// <summary>
        /// 课程数据模型
        /// </summary>

        public class CourseModel:IIdentity
        {
                /// <summary>
                /// 获取或设置标识
                /// </summary>
                /// <value>
                /// 标识
                /// </value>
                [MongoId]
                public String Id { get; set; }

                /// <summary>
                /// 获取课程运作Id
                /// </summary>
                /// <value>
                /// 课程运作Id
                /// </value>
                public String MajorOperationId { get; set; }

                /// <summary>
                /// 获取或设置课程教师标识
                /// </summary>
                /// <value>
                /// 教师标识
                /// </value>
                public String ContactId { get; set; }

                /// <summary>
                /// 获取或设置课程名称
                /// </summary>
                /// <value>
                /// 课程名称
                /// </value>
                public String Name { get; set; }

                /// <summary>
                /// 获取或设置课程是否必修
                /// </summary>
                /// <value>
                /// 课程是否必修
                /// </value>
                public bool IsCompulsory { get; set; }

                /// <summary>
                /// 获取或设置课程学生人数
                /// </summary>
                /// <value>
                /// 学生人数
                /// </value>
                public int StudentsAmount { get; set; }
        }
}